home *** CD-ROM | disk | FTP | other *** search
/ Professional Soft Collection 1.02 / Professional Soft Collection 1.02.iso / msdos622.rus / msdos_4.ddi / SETUP.BAT < prev    next >
DOS Batch File  |  1993-05-31  |  13KB  |  517 lines

  1. @echo off
  2. if "%2"=="COPY" goto docopy
  3. echo.
  4. echo Installs the MS-DOS 6.22 Supplemental Utilities, including:
  5. echo    * AccessDOS - assists persons with disabilities in using MS-DOS 6.22
  6. echo    * Keyboard utilities, including ISO fonts and Dvorak keyboard layouts
  7. echo    * A program for creating a bootable compressed floppy disk
  8. echo    * Utilities from MS-DOS 5.0 that were not included with MS-DOS 6.22
  9. echo    * Updated network files for MS-DOS 6.22
  10. echo    * MS-DOS Shell
  11. echo.
  12.  
  13. set OCPCMD=%COPYCMD%
  14. set COPYCMD=/y
  15. if not "%COPYCMD%"=="/y" goto enverr
  16.  
  17. if "%1"=="" goto usage
  18.  
  19. echo Which components do you want to install?
  20. echo.
  21. echo   A: All the components (requires about 1.4 MB of free disk space)
  22. echo   S: Selected components only
  23. echo   X: Exit
  24. echo.
  25. choice /c:asx "All, Selected, Exit "
  26. if errorlevel 3 goto done
  27. set SD6=S
  28. if not "%SD6%"=="S" goto enverr
  29. if errorlevel 2 goto checkdir
  30. set SD6=A
  31.  
  32. :checkdir
  33. set DISK=XXX
  34. if not "%DISK%"=="XXX" goto enverr
  35.  
  36. if exist 360ID01.bat set DISK=360
  37. if exist 720ID01.bat set DISK=720
  38. if exist 120ID01.bat set DISK=120
  39. if exist 144ID01.bat set DISK=144
  40.  
  41. if not exist %DISK%ID01.BAT goto direrr
  42.  
  43. echo.
  44. expand %DISK%id01.bat %1\amjklfgh.000 > NUL
  45. if exist %1\amjklfgh.000 goto package1
  46.  
  47. echo The %1 directory does not exist.
  48. echo Do you want to create it?
  49. choice /c:yx "Yes, Exit "
  50. if errorlevel 2 goto done
  51.  
  52. echo Creating the %1 directory.
  53. md %1
  54. expand %DISK%id01.bat %1\amjklfgh.000 > NUL
  55. if not exist %1\amjklfgh.000 goto patherr
  56.  
  57.  
  58.  
  59. :package1
  60. if "%SD6%"=="A" goto auto1
  61. echo.
  62. echo.
  63. echo AccessDOS
  64. echo =========
  65. echo AccessDOS is a package of MS-DOS extensions for users with movement 
  66. echo or hearing disabilities. These extensions provide better access to 
  67. echo computers that run MS-DOS 6.22. AccessDOS requires about 265K of 
  68. echo free disk space.
  69. echo.
  70. echo Do you want to copy the AccessDOS utilities?
  71. choice /c:ynx "Yes, No, Exit "
  72. echo.
  73. if errorlevel 3 goto done
  74. if errorlevel 2 goto package2
  75.  
  76. :auto1
  77. echo TAG > %1\amjklfgh.001
  78.  
  79.  
  80.  
  81. :package2
  82. if "%SD6%"=="A" goto auto2
  83. echo.
  84. echo Keyboard Utilities
  85. echo ==================
  86. echo This package includes three Dvorak keyboard layouts, which can be used
  87. echo with any standard keyboard. These layouts are specifically designed to
  88. echo help individuals who type with a single hand or who have difficulty
  89. echo with the standard QWERTY layout.
  90. echo.
  91. echo The package also includes KBDBUF.SYS, which allows you to increase your
  92. echo keyboard type-ahead buffer, and ISO.CPI a monospace (nonproportional)
  93. echo display font.
  94. echo.
  95. echo This package requires about 65K of free disk space.
  96. echo.
  97. echo Do you want to copy the keyboard utilities?
  98. choice /c:ynx "Yes, No, Exit "
  99. echo.
  100. if errorlevel 3 goto done
  101. if errorlevel 2 goto package3
  102.  
  103. :auto2
  104. echo TAG > %1\amjklfgh.002
  105.  
  106.  
  107.  
  108. :package3
  109. if "%SD6%"=="A" goto auto3
  110. echo.
  111. echo Creating a Bootable Compressed Floppy Disk
  112. echo ==========================================
  113. echo The DRVBOOT.BAT program creates a bootable compressed floppy disk. 
  114. echo This program requires about 10K of free disk space.
  115. echo.
  116. echo Do you want to copy this program?
  117. choice /c:ynx "Yes, No, Exit "
  118. echo.
  119. if errorlevel 3 goto done
  120. if errorlevel 2 goto package4
  121.  
  122. :auto3
  123. echo TAG > %1\amjklfgh.003
  124.  
  125.  
  126.  
  127. :package4
  128. if "%SD6%"=="A" goto auto4
  129. echo.
  130. echo Additional MS-DOS Utilites
  131. echo ==========================
  132. echo This package contains utilities from MS-DOS 5.0 that were not included
  133. echo with MS-DOS 6.22. This package requires about 350K of free disk space.
  134. echo.
  135. echo Do you want to copy these utilities?
  136. choice /c:ynx "Yes, No, Exit "
  137. echo.
  138. if errorlevel 3 goto done
  139. if errorlevel 2 goto package5
  140. echo.
  141.  
  142. :auto4
  143. echo TAG > %1\amjklfgh.004
  144.  
  145.  
  146.  
  147. :package5
  148. if "%SD6%"=="A" goto auto5
  149. echo.
  150. echo MS-DOS 6.22 Network Files
  151. echo =========================
  152. echo If you upgraded to MS-DOS 6.22 from a version of MS-DOS less than 5.0,
  153. echo you might need to update your network files.  This package contains the
  154. echo networks files that will work with MS-DOS 6.22. The package requires about
  155. echo 275K of free disk space.
  156. echo.
  157. echo Do you want to copy the network files?
  158. choice /c:ynx "Yes, No, Exit "
  159. echo.
  160. if errorlevel 3 goto done
  161. if errorlevel 2 goto package6
  162. echo.
  163.  
  164. :auto5
  165. echo TAG > %1\amjklfgh.005
  166.  
  167. :package6
  168. if "%SD6%"=="A" goto auto6
  169. echo.
  170. echo MS-DOS Shell
  171. echo ============
  172. echo This package requires about 450K of free disk space.
  173. echo.
  174. echo Do you want to copy the MS-DOS Shell?
  175. choice /c:ynx "Yes, No, Exit "
  176. echo.
  177. if errorlevel 3 goto done
  178. if errorlevel 2 goto copyit
  179. echo.
  180.  
  181. :auto6
  182. echo TAG > %1\amjklfgh.006
  183.  
  184. set DSHL=XXXXXX
  185. if not "%DSHL%"=="XXXXXX" goto enverr
  186.  
  187. :dshloop
  188. cls
  189. Echo Enter your display type by pressing the appropriate function key.
  190. Echo.
  191. Echo MS-DOS can use the following display types:
  192. Echo.
  193. Echo F1  -  Monochrome
  194. Echo F2  -  CGA
  195. Echo F3  -  EGA
  196. Echo F4  -  EGA Monochrome
  197. Echo F5  -  VGA
  198. Echo F6  -  VGA Monochrome
  199. Echo F7  -  Hercules
  200. Echo F8  -  MCGA
  201. Echo F9  -  8514
  202. Echo F10 -  Quit
  203. Echo.
  204. :get_key
  205. get_func.com
  206. if errorlevel 69 goto get_key
  207. if errorlevel 68 goto dshdone
  208. if errorlevel 67 if not errorlevel 68 goto 8514
  209. if errorlevel 66 if not errorlevel 67 goto mcga
  210. if errorlevel 65 if not errorlevel 66 goto herc
  211. if errorlevel 64 if not errorlevel 65 goto vgamono
  212. if errorlevel 63 if not errorlevel 64 goto vga
  213. if errorlevel 62 if not errorlevel 63 goto egamono
  214. if errorlevel 61 if not errorlevel 62 goto ega
  215. if errorlevel 60 if not errorlevel 61 goto cga
  216. if errorlevel 59 if not errorlevel 60 goto mono
  217. goto dshloop
  218.  
  219. :mono
  220. Echo You selected "Monochrome". Is this correct?
  221. choice /c:yn "Yes, No "
  222. if errorlevel 2 goto dshloop
  223. set DSHL=cpmono
  224. goto dshdone
  225.  
  226. :cga
  227. Echo You selected "CGA". Is this correct?
  228. choice /c:yn "Yes, No "
  229. if errorlevel 2 goto dshloop
  230. set DSHL=cpcga
  231. goto dshdone
  232.  
  233. :ega
  234. Echo You selected "EGA". Is this correct?
  235. choice /c:yn "Yes, No "
  236. if errorlevel 2 goto dshloop
  237. set DSHL=cpega
  238. goto dshdone
  239.  
  240. :egamono
  241. Echo You selected "EGA Monochrome". Is this correct?
  242. choice /c:yn "Yes, No "
  243. if errorlevel 2 goto dshloop
  244. set DSHL=cpegam
  245. goto dshdone
  246.  
  247. :vga
  248. Echo You selected "VGA". Is this correct?
  249. choice /c:yn "Yes, No "
  250. if errorlevel 2 goto dshloop
  251. set DSHL=cpvga
  252. goto dshdone
  253.  
  254. :vgamono
  255. Echo You selected "VGA Monochrome". Is this correct?
  256. choice /c:yn "Yes, No "
  257. if errorlevel 2 goto dshloop
  258. set DSHL=cpvgam
  259. goto dshdone
  260.  
  261. :herc
  262. Echo You selected "Hercules". Is this correct?
  263. choice /c:yn "Yes, No "
  264. if errorlevel 2 goto dshloop
  265. set DSHL=cpherc
  266. goto dshdone
  267.  
  268. :mcga
  269. Echo You selected "MCGA". Is this correct?
  270. choice /c:yn "Yes, No "
  271. if errorlevel 2 goto dshloop
  272. set DSHL=cpmcga
  273. goto dshdone
  274.  
  275. :8514
  276. Echo You selected "8514". Is this correct?
  277. choice /c:yn "Yes, No "
  278. if errorlevel 2 goto dshloop
  279. set DSHL=cp8514
  280. goto dshdone
  281.  
  282. :dshdone
  283. if "%DSHL%"=="XXXXXX" goto dshlrerr
  284.  
  285. :copyit
  286. if not exist %1\amjklfgh.00? goto done
  287.  
  288. echo.
  289. echo Please Wait...
  290. copy sd6copy.bat %1 > NUL
  291. if exist %1\choice.com ren %1\choice.com choice.999 > NUL
  292. copy choice.com %1 > NUL
  293. if exist %1\expand.exe ren %1\expand.exe expand.999 > NUL
  294. copy expand.exe %1 > NUL
  295. copy setup.bat %1\sd6setup.bat > NUL
  296. %1\sd6setup %1 COPY
  297.  
  298. :docopy
  299. set SD6=1
  300. echo.
  301. echo Copying Supplemental Utilities...
  302. echo ---------------------------------------
  303.  
  304.  
  305. if not exist %1\amjklfgh.001 goto copy2
  306. call %1\sd6copy ADOS.OVL %1
  307. call %1\sd6copy ADOS.COM %1
  308. call %1\sd6copy ADOS.CFG %1
  309. call %1\sd6copy ADOS.TXT %1
  310. call %1\sd6copy AREADME.TXT %1
  311. call %1\sd6copy FAKEMOUS.COM %1
  312.  
  313.  
  314. :copy2
  315. if not exist %1\amjklfgh.002 goto copy3
  316. call %1\sd6copy DVORAK.SYS %1
  317. call %1\sd6copy DVORAK.TXT %1
  318. call %1\sd6copy KBDBUF.SYS %1
  319. call %1\sd6copy ISO.CPI %1
  320. call %1\sd6copy ISO.TXT %1
  321.  
  322.  
  323. :copy3
  324. if not exist %1\amjklfgh.003 goto copy4
  325. call %1\sd6copy DRVBOOT.BAT %1
  326. call %1\sd6copy AM.EXE %1
  327.  
  328.  
  329. :copy4
  330. if not exist %1\amjklfgh.004 goto copy5
  331. call %1\sd6copy ASSIGN.COM %1 D
  332. call %1\sd6copy BACKUP.EXE %1 D
  333. call %1\sd6copy COMP.EXE %1
  334. call %1\sd6copy CV.COM %1
  335. call %1\sd6copy EDLIN.EXE %1 D
  336. call %1\sd6copy JOIN.EXE %1 D
  337. call %1\sd6copy 4201.CPI %1
  338. call %1\sd6copy 4208.CPI %1
  339. call %1\sd6copy 5202.CPI %1
  340. call %1\sd6copy LCD.CPI %1
  341. call %1\sd6copy GORILLA.BAS %1
  342. call %1\sd6copy MONEY.BAS %1
  343. call %1\sd6copy NIBBLES.BAS %1
  344. call %1\sd6copy REMLINE.BAS %1
  345. call %1\sd6copy EXE2BIN.EXE %1 D
  346. call %1\sd6copy GRAFTABL.COM %1 D
  347. call %1\sd6copy MIRROR.COM %1
  348. call %1\sd6copy MSHERC.COM %1
  349. call %1\sd6copy PRINTER.SYS %1
  350. call %1\sd6copy PRINTFIX.COM %1
  351. call %1\sd6copy COMMANDS.TXT %1
  352.  
  353.  
  354. :copy5
  355. if not exist %1\amjklfgh.005 goto copy6
  356.  
  357. if "%DISK%"=="360" call %1\sd6copy CHANGEDISK 2
  358.  
  359. call %1\sd6copy NET.1XE %1
  360. call %1\sd6copy SETNAME.EXE %1
  361. call %1\sd6copy NETBEUI.DOS %1
  362. call %1\sd6copy NETWKSTA.1XE %1
  363. call %1\sd6copy NETWKSTA.2XE %1
  364. call %1\sd6copy REDIR.1XE %1
  365. call %1\sd6copy REDIR.2XE %1
  366. call %1\sd6copy NET.TXT %1
  367.  
  368. :copy6
  369. if not exist %1\amjklfgh.006 goto donecopy
  370.  
  371. if "%DISK%"=="360" call %1\sd6copy CHANGEDISK 3
  372. if "%DISK%"=="720" call %1\sd6copy CHANGEDISK 2
  373. if "%DISK%"=="120" call %1\sd6copy CHANGEDISK 2
  374.  
  375.  
  376. call %1\sd6copy dosshell.com    %1
  377. call %1\sd6copy dosshell.exe    %1
  378. call %1\sd6copy dosshell.hlp    %1
  379. call %1\sd6copy dosswap.exe     %1
  380. goto %DSHL%
  381.  
  382. :cpmono
  383. call %1\sd6copy mono.grb        %1\dosshell.grb NC %1
  384. call %1\sd6copy mono.ini        %1\dosshell.ini NC %1
  385. call %1\sd6copy mono.vid        %1\dosshell.vid NC %1
  386. goto cpddone
  387.  
  388. :cpcga
  389. call %1\sd6copy cga.grb         %1\dosshell.grb NC %1
  390. call %1\sd6copy cga.ini         %1\dosshell.ini NC %1
  391. call %1\sd6copy cga.vid         %1\dosshell.vid NC %1
  392. goto cpddone
  393.  
  394. :cpega
  395. call %1\sd6copy ega.grb         %1\dosshell.grb NC %1
  396. call %1\sd6copy ega.ini         %1\dosshell.ini NC %1
  397. call %1\sd6copy ega.vid         %1\dosshell.vid NC %1
  398. goto egainst
  399.  
  400. :cpegam
  401. call %1\sd6copy egamono.grb     %1\dosshell.grb NC %1
  402. call %1\sd6copy ega.ini         %1\dosshell.ini NC %1
  403. call %1\sd6copy ega.vid         %1\dosshell.vid NC %1
  404. goto egainst
  405.  
  406. :cpvga
  407. call %1\sd6copy vga.grb         %1\dosshell.grb NC %1
  408. call %1\sd6copy ega.ini         %1\dosshell.ini NC %1
  409. call %1\sd6copy vga.vid         %1\dosshell.vid NC %1
  410. goto cpddone
  411.  
  412. :cpvgam
  413. call %1\sd6copy vgamono.grb     %1\dosshell.grb NC %1
  414. call %1\sd6copy ega.ini         %1\dosshell.ini NC %1
  415. call %1\sd6copy vga.vid         %1\dosshell.vid NC %1
  416. goto cpddone
  417.  
  418. :cpherc
  419. call %1\sd6copy herc.grb        %1\dosshell.grb NC %1
  420. call %1\sd6copy mono.ini        %1\dosshell.ini NC %1
  421. call %1\sd6copy herc.vid        %1\dosshell.vid NC %1
  422. goto cpddone
  423.  
  424. :cpmcga
  425. call %1\sd6copy vga.grb         %1\dosshell.grb NC %1
  426. call %1\sd6copy cga.ini         %1\dosshell.ini NC %1
  427. call %1\sd6copy cga.vid         %1\dosshell.vid NC %1
  428. goto cpddone
  429.  
  430. :cp8514
  431. call %1\sd6copy vga.grb         %1\dosshell.grb NC %1
  432. call %1\sd6copy ega.ini         %1\dosshell.ini NC %1
  433. call %1\sd6copy 8514.vid        %1\dosshell.vid NC %1
  434. goto cpddone
  435.  
  436.  
  437. :egainst
  438. FIND /C /I "EGA.SYS" c:\config.sys > NUL
  439. if errorlevel 1 goto cpegasys
  440. goto cpddone
  441. :cpegasys
  442. call %1\sd6copy ega.sys %1
  443. Echo DEVICE=%1\EGA.SYS > %1\egasysad.dln
  444. copy c:\config.sys+%1\egasysad.dln c:\config.sys > NUL
  445. echo ---------------------------------------
  446. Echo.
  447. Echo The DEVICE=%1\EGA.SYS command has been added to your CONFIG.SYS file.
  448. Echo This command is required if you plan to use the MS-DOS Shell Task 
  449. Echo Swapper with an EGA monitor. 
  450. Echo.
  451. Echo If you have an EGA monitor and also use a mouse, you can save memory 
  452. Echo by ensuring that the DEVICE command for EGA.SYS is loaded before the
  453. Echo mouse driver.
  454. Echo.
  455. goto cpddone
  456.  
  457. :cpddone
  458.  
  459. :donecopy
  460. del %1\amjklfgh.00? > NUL
  461. del %1\sd6copy.bat > NUL
  462. del %1\expand.exe > NUL
  463. del %1\choice.com > NUL
  464. if exist %1\egasysad.dln del %1\egasysad.dln > NUL
  465. if exist %1\expand.999 ren %1\expand.999 expand.exe > NUL
  466. if exist %1\choice.999 ren %1\choice.999 choice.com > NUL
  467. echo ---------------------------------------
  468. echo.
  469. echo The MS-DOS 6.22 Supplemental Utilities have been successfully installed.
  470. echo.
  471. echo NOTE  If you installed the additional utilities from MS-DOS 5.0,
  472. echo       you must restart your computer before you can run them.
  473. %DISK%id0%SD6% %1
  474.  
  475.  
  476.  
  477.  
  478. :usage
  479. echo SETUP [drive:][path]
  480. echo.
  481. echo   [drive:][path] - Directory to install the utilities into.
  482. echo                    (ie. "C:\MSDOS", "C:").
  483. goto done
  484.  
  485. :patherr
  486. echo.
  487. echo Setup was unable to create the directory %1!
  488. echo.
  489. echo Note: The supplied directory name must not have a trailing \.  If you are
  490. echo       installing to the root directory, just specify the drive letter and
  491. echo       colon (ie. "C:").
  492. goto done
  493.  
  494. :enverr
  495. echo.
  496. echo ERROR: Not enough environment space to run SETUP.BAT!
  497. goto done
  498.  
  499. :direrr
  500. echo.
  501. echo ERROR: You must run SETUP.BAT from the drive and directory that contains
  502. echo        your supplemental disk files.
  503. goto done
  504.  
  505. :dshlrerr
  506. echo.
  507. echo An Error occoured while choosing video display for the MS-DOS Shell.
  508. goto done
  509.  
  510. :done
  511. if exist %1\amjklfgh.00? del %1\amjklfgh.00? > NUL
  512. set SD6=
  513. set DSHL=
  514. set DISK=
  515. set COPYCMD=%OCPCMD%
  516. set OCPCMD=
  517.